package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.SysMailRecord;
import com.ruoyi.system.mapper.MailMapper;
import com.ruoyi.system.service.MailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MailServiceImpl implements MailService {

    @Autowired
    MailMapper mailMapper;


    @Override
    public void insertMailRecord(List<SysMailRecord> sysMailRecordList) {
        mailMapper.insertMailRecord(sysMailRecordList);
    }

    @Override
    public List<SysMailRecord> selectMailRecordToList(SysMailRecord sysMailRecord) {
        return mailMapper.selectMailRecordToList(sysMailRecord);
    }
}
